export const ROOM_ROLE = {
  OWNER_ANCHOR: "OwnerAnchor", //没有转移开播权的主播
  OWNER_ASSISTANT: "OwnerAssistant", //转移了开播权的主播
  ANCHOR: "Anchor", //接收了开播权的主播
  LINK_ANCHOR: "LinkAnchor", //连麦的人
  ASSISTANT: "Assistant", //助理
  AUDIENCE: "Audience", //观众
}

export const ROOM_STATUS = {
  RESUME: -1, //后端无此状态，仅用于特殊情况处理
  NOT_STARTED: 0, //未开始
  STARTED: 1, //直播中
  PAUSED: 2, //暂停中
  ENDED: 3, //已结束
  DELETED: 4, //已删除
  BANNED: 5, //已封禁
}

//SD（标清）, HD（高清）, FHD（超清）, RTC（实时通话）
export const LIVE_MODE = {
  SD: "SD",
  HD: "HD",
  FHD: "FHD",
  RTC: "RTC",
}

export const LIVE_TYPE = {
  TEXT: 0, //图文直播
  AUDIO: 1, //语音直播
  VIDEO: 2, //视频直播
  OBS_REC: 3, //obs录播
  OBS: 4, //obs专业直播
  VR: 5,  //VR全景直播
  REBROADCAST: 6, //转播(转推)
}

export const LIVE_OPERATION = {
  START: "start", //开始直播
  PAUSE: "pause", //暂停直播
  RESUME: "resume", //结束直播
  STOP: "stop", //结束直播
}

//子组件传参类型
export const COMPONENT_OPERATION = {
  TOGGLE_DEBUG: "toggleDebug", //切换调试
  CHANGE_MODE: "changeMode", //切换清晰度
  TOGGLE_MUTE: "toggleMute", //切换静音
  TOGGLE_CAMERA: "toggleCamera", //结束摄像头前后置
  CHANGE_BEAUTY: "changeBeauty", //设置美颜值
  PLAY_VIDEO: "playVideo", //播放回放视频或音频

  OPERATE: "operate", //其他操作
}

export const ROOMSTATS_TYPE = {
  VISITED: 0, //访问过房间
  CREATED: 1, //创建的
  LIKED: 2, //点赞的
  SHARED: 3, //分享的
  STARTING: 9 //即将开始的直播
}

export const MUTE_STATUS = {
  NORMAL: 0, //默认都可以发言
  BANNED: 1, //全局禁言
  PENDING: 2, //先审后发
}

export const INVITE_STATUS = {
  REFUSE: -1, // 拒绝邀请
  ACCEPT: 1, // 接受邀请
  NEVER: 0, // 未邀请
  CONNECTING: 2 // 连麦中
}

export const HEARTBEAT_INTERVAL = 10000; //心跳间隔